package cn.itcast.service.cargo;

import cn.itcast.domain.cargo.Finance;
import cn.itcast.domain.cargo.FinanceExample;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface FinanceService {
    int deleteByPrimaryKey(String financeId);

    int insert(cn.itcast.domain.cargo.Finance record);

    int insertSelective(cn.itcast.domain.cargo.Finance record);

    List<cn.itcast.domain.cargo.Finance> selectByExample(FinanceExample example);

    Finance selectByPrimaryKey(String financeId);

    int updateByPrimaryKeySelective(cn.itcast.domain.cargo.Finance record);

    int updateByPrimaryKey(cn.itcast.domain.cargo.Finance record);

    PageInfo<Finance> findByPage(
            FinanceExample financeExample, Integer pageNum, Integer pageSize);

    void save(Finance finance);
}
